/**
 * author: liduanjie
 * model component
 */


jQuery.component = {
	tips: function () {
		var $template = $('div[data-type="template"]').html();
		console.log($template)
		$template.appendTo($('body'))
		console.log($template)
		$template.on('click', function() {
			$(this).hide()
		})
	}
}

(function() {
	$.component.tips()
})